package com.reins.bookstore.dao;

import com.reins.bookstore.entity.User;
import com.reins.bookstore.entity.UserAuth;
import com.reins.bookstore.object.UserDTO;
import org.dom4j.util.UserDataAttribute;

import java.util.List;

public interface UserDao {

    UserAuth checkUser(String username, String password);

    List<UserAuth> findAllUserAuths();

    User findUserById(Integer id);

    UserAuth findUserAuthById(Integer id);

    UserAuth findUserAuthByName(String username);

    List<User> findAllUsers();

    List<UserDTO> findAllUserDTOs();

    List<UserAuth> findUserAuthInRange(Integer startId, Integer endId);

    UserDTO editUser(UserDTO user_dto, String password);




    UserAuth createUser(UserDTO user_dto, String password);

    void deleteUser(Integer userId);

    UserAuth saveAuthAndFlush(UserAuth add);




}
